<%@page import="board.BoardVo"%>
<%@page import="board.BoardMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view.jsp</title>
<script>
function modify(s){
	location.href='modify.jsp?serial='+s;
}
function del(s,f){
	location.href='delete.jsp?serial='+s+'&filename='+f;
}
function mlist(s){
	location.href='list.jsp?serial='+s;
}

</script>
</head>
<body>

<jsp:useBean id="vo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="vo"/>
<%

BoardMyba board=new BoardMyba();
board.setBoardvo(vo);
BoardVo data = board.view();

%>

<h1> 보드뷰</h1>
<li> Serial : <%=data.getSerial() %>
<li> FileName : <%=data.getFilename() %>
<li> Mid: <%=data.getMid()%>
<li> Content :  <%=data.getContent() %>
<p/>

<input type='button' value="목록으로" onclick='mlist("<%=data.getSerial() %>")'>
<input type='button' value="수정" onclick='modify("<%=data.getSerial()%>")'>
<input type='button' value="삭제" onclick="del(<%=data.getSerial() %>,'<%=data.getFilename()%>')">


</body>
</html>